You can apply six different themes to the C1DockControl. See C1DockControl Themes for an example of each of the themes. In this topic, you will change the C1DockControl control's theme to C1ThemeRainierOrange.
In Blend
Complete the following steps:
- Click the Assets tab.
- In the search bar, enter "C1ThemeRainierOrange". The C1ThemeRainierOrange icon appears.
- Double-click the C1ThemeRainierOrange icon to add it to your project.
- Under the Objects and Timeline tab, select [C1ThemeRainierOrange].
- In the search bar, enter "C1DockControl ". The C1DockControl icon appears.
- Drag the C1DockControl icon to the C1ThemeRainierOrange item in the Objects and Timeline tab.
- Release the mouse button, and the C1DockControl is added as a child of C1ThemeRainierOrange.
- In the search bar, enter "C1DockTabControl ". The C1DockTabControl icon appears.
- Drag the C1DockTabControl icon to the C1DockControl item in the Objects and Timeline tab.
- Release the mouse button, and the C1DockTabControl is added as a child of C1DockControl.
- Press F5 to run your project and observe that the C1DockControl resembles the following:
In Visual Studio
Complete the following steps:
- Open the .xaml page in Visual Studio.
- Place your cursor between the <Grid></Grid> tags.
- In the Toolbox, double-click the C1ThemeRainierOrange icon to declare the theme. Its tags will appear as follows: <my:C1ThemeRainierOrange></my:C1ThemeRainierOrange>
A reference to the C1.Silverlight.Theming and C1.Silverlight.Theming.RainierOrange assemblies will be added to your project.
- Place your cursor between the <my:C1ThemeRainierOrange> and </my:C1ThemeRainierOrange> tags.
- In the Toolbox, double-click the C1DockControl icon to add the control to the project. Its tags will appear as children of the <my:C1ThemeRainierOrange> tags, causing the markup to resemble the following:
XAML |
Copy Code
|
<my:C1ThemeRainierOrange>
<c1:C1DockControl></c1:C1DockControl>
</my:C1ThemeRainierOrange>
|
- Place your cursor between the <c1:C1DockControl> and </c1:C1DockControl> tags.
- In the Toolbox, double-click the C1DockTabControl icon to add the control to the project. Your XAML markup will now look similar to this:
XAML |
Copy Code
|
<my:C1ThemeRainierOrange>
<c1:C1DockControl>
<c1:C1DockTabControl></c1:C1DockTabControl>
</c1:C1DockControl>
</my:C1ThemeRainierOrange>
|
- Press F5 to run your project and observe that the C1DockControl resembles the following: